<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Gets the primary keys for a table</title>
 </head>
 <body class="docs"><div id="layout">
  <div id="layout-content"><div id="function.odbc-primarykeys" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">odbc_primarykeys</h1>
  <p class="verinfo">(PHP 4, PHP 5, PHP 7)</p><p class="refpurpose"><span class="refname">odbc_primarykeys</span> &mdash; <span class="dc-title">Gets the primary keys for a table</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.odbc-primarykeys-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>odbc_primarykeys</strong></span>
    ( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$connection_id</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$qualifier</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$owner</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$table</code></span>
   ) : <span class="type">resource</span></div>

  <p class="para rdfs-comment">
   Returns a result identifier that can be used to fetch the column names
   that comprise the primary key for a table.
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-function.odbc-primarykeys-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    
     <dt>
<code class="parameter">connection_id</code></dt>

     <dd>

      <p class="para">ODBC 连接标识符，详见
<span class="function"><a href="odbc_connect.html" class="function">odbc_connect()</a></span>。</p>
     </dd>

    
    
     <dt>
<code class="parameter">qualifier</code></dt>

     <dd>

      <p class="para">
      </p>
     </dd>

    
    
     <dt>
<code class="parameter">owner</code></dt>

     <dd>

      <p class="para">
      </p>
     </dd>

    
    
     <dt>
<code class="parameter">table</code></dt>

     <dd>

      <p class="para">
      </p>
     </dd>

    
   </dl>

  </p>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-function.odbc-primarykeys-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Returns an ODBC result identifier 或者在失败时返回 <strong><code>FALSE</code></strong>.
  </p>
  <p class="para">
   The result set has the following columns:
   <ul class="itemizedlist">
    <li class="listitem"><span class="simpara">TABLE_QUALIFIER</span></li>
    <li class="listitem"><span class="simpara">TABLE_OWNER</span></li>
    <li class="listitem"><span class="simpara">TABLE_NAME</span></li>
    <li class="listitem"><span class="simpara">COLUMN_NAME</span></li>
    <li class="listitem"><span class="simpara">KEY_SEQ</span></li>
    <li class="listitem"><span class="simpara">PK_NAME</span></li>
   </ul>
  </p>
 </div>

</div></div></div></body></html>